Previous Book Contents Next

Inside Macintosh: Using JBindery


How JBindery Works

Java programs must run in a virtual machine that is created on the host platform. The virtual machine uses services provided by the host platform to map graphical information provided by the Abstract Window Toolkit (AWT) to the user-visible screen and to pass any user input to the Java program. JBindery provides these services to your Java program. For example, if you use JBindery to execute a Java application, JBindery instantiates a Java virtual machine and then calls the Java application's main method. After the Java application quits, JBindery performs cleanup (removing the virtual machine and so on) and quits.

If you create a standalone Java application, JBindery packages a small wrapper Mac OS application in the Java application file. Creation and removal of the virtual machine is then handled transparently when you execute the packaged Java application.

Note

JBindery relies on the JManager function library (as provided with MRJ 2.0 and later) to interact with Java programs. For detailed information about these Mac OS functions, see the document Programming with JManager.


Previous Book Contents Next

© Apple Computer, Inc.
06 AUGUST 1998